<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <link type="text/css" rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"/>
</head>
<body>

<div class="container">
    <div class="row" style="margin-top: 30px">
        <a class="btn btn-danger" href="/addUser">增加用户</a>

        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>用户名</th>
                    <th>电话</th>
                    <th>地址</th>
                    
                </tr>
            </thead>
            <tbody>
            <c:forEach items="${allAddress}" var="cc">
                        <tr>
                          <td>${cc.id}</td>
                           <td>${cc.city}</td>
                           <td>${cc.province}</td>
                           <td><a href="/delete?id=${cc.id}" class="btn btn-danger">删除</a></td>
                       </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div>

<script src="js/jquery.min.js"></script>

</body>
</html>